package br.com;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class ProjetoAndroidActivity extends Activity {
    /** Called when the activity is first created. */
	//private Button botao2;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main); // default: carrega layout main na inicializacao.
        
        
      	//Um botao no layout nao existe sem um objeto associado
    //    botao2 = (Button) findViewById(R.id.btnTela2);
        //adiciona o objeto na lista de eventos OnClick
      /*  botao2.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent it = new Intent(v.getContext(), Tela2Activity.class);
				Bundle param = new Bundle();
				param.putString("param1","Primeiro Parametro");
				param.putString("param2", "Segundo Parametro");
//				it.putExtra("texto", "Passando Parametro");
				it.putExtras(param);
				startActivity(it);
				
			}
		});*/		
	}
}